#!/bin/bash
###这是主脚本
sh configure/variable/Default-variable.sh #设置默认变量
source configure/variable/Default-variable.sh #设置默认变量
echo -e "\033[5;35m --------------欢迎使用雅辰Linux系统多功能一键安装脚本1.0-----------------\033[0m"
echo -e "\033[5;35m --------------最后更新时间为：2018年10月31日7:26-----------------\033[0m"
echo -e "\033[5;35m --------------添加Python一键配置脚本[安装菜单的项目可看到]------------------\033[0m"
echo -e "\033[35m -------------------------推荐一个免费的数据库使用网站    $mysqlh		\033[0m"
echo -e "\033[31m --------------请选择你要进行配置的类型-----------------\033[0m"
echo -e "\033[31m --------------1在此服务器安装服务-------\033[0m"
echo -e "\033[31m --------------2在此服务器卸载服务-----------------\033[0m"
echo -e "\033[31m --------------3配置相关开发环境[Java;python;jenkins]-----------------\033[0m"
echo -e "\033[31m --------------4检测此服务器安装过的本脚本的服务-----------------\033[0m"
echo -e "\033[31m --------------5更新YUM源-（配置Yum源为国内源)-----------------\033[0m"
read inorun
if [ "$inorun" == "1" ];then
	sh configure/install/install.sh
elif [ "$inorun" == "2" ];then
	sh configure/unstall/unstall.sh
elif [ "$inorun" == "3" ];then
        sh configure/etct/etction.sh
elif [ "$inorun" == "4" ];then
	sh configure/test/testing.sh
elif [ "$inorun" == "5" ];then
	sh configure/install/yum-update.sh
else
	echo "你的选择有误"
fi	
